package org.ccay.excel.importer.validate;

/**
 * 状态	
 * @author chaowangbang
 * @since Mar 13, 2012
 */
public interface IStatus {
	
	/** OK状态 **/
	public static final int OK = 1;
	
	/** 错误状态 **/
	public static final int ERROR = 2;
	
	public static final IStatus Ok = new Status(OK);
	
	/** 获取状态码	
	 * @author chaowangbang
	 * @since Mar 14, 2012
	 * @return
	 */
	public int getStatus();
	
	/** 获取消息
	 * @author chaowangbang
	 * @since Mar 14, 2012
	 * @return
	 */
	public String getMessage();
	
	/** 是否是OK状态	
	 * @author chaowangbang
	 * @since Mar 21, 2012
	 * @return
	 */
	public boolean isOK();
}
